import { defineStore } from 'pinia';
import {store} from  '../index';

interface HomeState {
    count: number
}

export const useHomeStore = defineStore({
    id: 'app-home',
    state: (): HomeState =>({
        count: 666
    }),
    getters: {},
    actions: {},
})

// need used outside the setup
export function useHomeStoreWithOut() {
    return useHomeStore(store)
}